<template>
    <div>

        <div style="width: 70%;background-color: white;margin: 0 15%;padding: 0 20px;">
            <div style="width: 80%;margin: 0 10%;">
                <h2 style="padding: 30px 0 20px 0;">{{ info.title }}</h2>
                <div>
                    <span>作者：{{ info.author }}</span>
                    <span style="margin-left: 100px;">发布时间：{{ info.createTime }}</span>
                </div>
                <div style="line-height: 2.8;padding-bottom:80px ;">
                    {{ info.content }}
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            info: {}
        }
    },
    mounted() {
        this.getInfo()
    },
    methods: {
        getInfo() {
            var id = this.$route.query.id
            this.request.get("/information/" + id).then(res => {

                if (res.code == 200) {

                    this.info = res.data
                }
            })
        }
    },
}
</script>

<style lang="less" scoped></style>